package com.elitel.frame.business.service;

import com.elitel.frame.main.entity.CfgDb;
import com.elitel.frame.main.entity.vo.JsonResult;

import java.util.List;
import java.util.Map;

public interface CensusSearchService {

  Map<String, Object> getCensusSearch(CfgDb prop, String serviceID, String conQuery);

  Map<String, Object> getCensusTableing(CfgDb prop, String serviceID, String conQuery);

  Map<String, Object> getCensusTableed(CfgDb prop, String serviceID, String conQuery);

  Map<String, String> getCensusTableColumn(CfgDb cfgDb, String serviceString);

  List<String> getBaseSqlColumnList(CfgDb cfgDb, String sqlString);

  JsonResult getBaseSqlColumn(
      CfgDb cfgDb,
      String pageNo,
      String pageSize,
      String sqlString,
      String dbkey,
      String serviceID,
      Integer paramType);
  // 使用数据库和拼接的sql语句获取数据
  List<Map<String, Object>> executequerySql(CfgDb cfgDb, String sqlString);

  List<Map<String, Object>> executequerySqls(String uuid, CfgDb cfgDb, String sqlString);
}
